{{ $isHome        := .IsHome }}
{{ $isDoc         := eq .Section "docs" }}
{{ $title         := cond $isHome site.Title (printf "%s &ndash; %s" site.Title .Title) }}
{{ $description   := cond $isHome site.Params.description .Params.description }}
{{ $pageType      := cond $isHome "website" "article" }}
{{ $imageUrl      := "img/logos/harbor-icon-color.png" | absURL }}
{{ $twitterHandle := site.Params.twitter }}
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
{{ with $description }}
<meta name="description" content="{{ . }}" />
{{ end }}

<!-- OpenGraph metadata-->
<meta property="og:title" content="{{ $title }}">
{{ if $isDoc }}
<meta property="og:type" content="documentation">
{{ end }}
<meta property="og:url" content="{{ .Permalink }}">
<meta property="og:locale" content="en_US">
{{ if not $isHome }}
<meta property="og:site_name" content="{{ site.Title }}">
{{ end }}
{{ with $description }}
<meta property="og:description" content="{{ . }}">
{{ end }}
<meta name="og:type" content="{{ $pageType }}">
<meta name="og:image" content="{{ $imageUrl }}">
<meta name="og:image:alt" content="{{ $title}} project logo">
<meta name="og:image:type" content="image/png">


<!-- Twitter Card metadata -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@{{ $twitterHandle }}">
<meta name="twitter:creator" content="@{{ $twitterHandle }}">

<link rel="canonical" href="{{ .Permalink }}">
<link rel="shortcut icon" href="/favicon.svg" type="image/svg">
{{ hugo.Generator }}
